#pragma once
#include <d3d9.h>
#include <d3dx9.h>

class IndexBuffer
{
public:
	IndexBuffer(void);
    IndexBuffer(const IndexBuffer &) {}
    IndexBuffer &operator=(const IndexBuffer &) { return *this; }
	~IndexBuffer(void);

    static UINT AddIndices(const UINT* indices, UINT numIndices);
	static void Shutdown();

	static IDirect3DIndexBuffer9* m_pIndexBuff;

private:
    const static int s_IndexSizeIncrement = 26000;

	static UINT m_NumIndices;
	static UINT m_IndicesUsed;

	static void IncreaseIndices(UINT numIndices);
};